<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>

<html>
  <head>
    
    <title><s:property value="usermail"/> 查看像册</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    	
	<meta http-equiv="keywords" content="登陆,zozopo登陆,登陆zozopo">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style>
	<!--
	table {
	table-layout: fixed;
	word-wrap:break-word;
	}
	td{
		
		word-break:break-all;
	}
	
	}
	//-->
</style>

  </head>
  
  <body>
    <table  width="100%"  border="0" cellpadding="0" cellspacing="0" height="100%">
  	<tr valign="top">
  		<td>
  			<jsp:include page="head.jsp"></jsp:include>
  		</td>
  	</tr>
  	<tr valign="top">
  		<td>
  			<table width="100%"  border="0" cellpadding="0" cellspacing="0">
  
 <tr>
    	<td width="270" align="center">
    		
    	</td>
    	<td width="100%">
    		
    		
    		
    	</td>
    </tr>
    
    <tr>
    	<td valign="top">
     		<div>
     		
     		</div>
		   <jsp:include page="/user/left.jsp"></jsp:include>
     	</td>
     	
     	
     	<td valign="top" >
     <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
    	 <tr>
     		<td>
     	<table width="100%" height="100%" border="0" cellpadding="0" bgcolor="#e5f3ff" cellspacing="0" style= "border:1px solid #ffffff; border-top-color:#6cb1f1;">
     		
     		<tr>
     			<td>图片信息</td>
     		</tr>
     	</table>
     	</td>
     		</tr>
 <tr>
     		<td>
			
	</td>
     		</tr>
     		 <tr>
     		<td>
     		
		<table align="left"  border="0"  cellspacing="0" cellpadding="0" style= "border:1px solid #ffffff; border-bottom-color:#21a4dc;
    border-left-color:#21a4dc;border-right-color:#21a4dc;border-top-color:#21a4dc">
    
   	<s:iterator id="imageList" value="imageList" status="sta">
   	
     		<s:if test="#sta.first==true">
     		<tr>
     		</s:if>
     		
     		
     			<td align="center" width="150" height="150">
     			
     			<a href="<s:property value="#imageList.image_url"/>" ><IMG src="<s:property value="#imageList.image_smallurl"/>"/></a>
     			<br><s:property value="#imageList.image_name"/>
     			</td>  
     			
     		<s:if test="#sta.modulus(5)==0">
     		</tr><tr>
     		</s:if>
	 	 	<s:if test="#sta.last==true">
     		</tr>
     		</s:if>
     		
    </s:iterator>
     		
     		
     	</table>
     	</td>
     	</tr>
     	</table>
     	
     	 <table width="100%" border="0" cellpadding="0" bgcolor="" cellspacing="0" >
				<tr >
					<td >
						<%
						int pageSize = (Integer) request.getAttribute("pageSize");
						int beginPageNum =  (Integer) request.getAttribute("beginPageNum");
						int countRow =  (Integer) request.getAttribute("rowNum");
					    int countPage =(countRow-1)/pageSize+1;
					    String usermail = (String)request.getAttribute("usermail");//*/
					    //String searchstr = (String)request.getParameter("search");//*/
					    //String kind = (String)request.getParameter("kind");//*/
					    //String lable = (String)request.getParameter("lable");//*/   
					   
					    //beginPageNum =  (pageNum - 1) * pageSize;
					    //System.out.println(pageSize +" "+ beginPageNum +" "+ countRow +" "+ countPage);
					    if((beginPageNum-pageSize+1) >= 1){%>
					    	<a href="album.action?usermail=<%=usermail %>&beginPageNum=<%=(beginPageNum-pageSize) %>">
									上一页 </a>
					   <% }
					    
						StringBuffer chagePageBuff = new StringBuffer();
						if(countPage >= 2){
							for(int i=0;i<countPage;i++){
								if(beginPageNum == i*pageSize){
									%>
									<%=i+1 %>
									<%
								}else{
									%>
									<a href="album.action?usermail=<%=usermail %>&beginPageNum=<%=i*pageSize %>">
									[<%=i+1 %>] </a>
									<%
								}
							}
						}
						if((beginPageNum+pageSize-countRow) < 0){%>
				    	<a href="album.action?usermail=<%=usermail %>&beginPageNum=<%=(beginPageNum+pageSize) %>">
								下一页 </a>
				   		<% }
						//*/
						%>
					</td>

				</tr>
				
	</table>
	</td>
</tr>
</table>
  		
  		</td>
  	</tr>
  	<tr valign="bottom">
  		<td>
  			<jsp:include page="tail.jsp"></jsp:include>
  		</td>
  	</tr>
  </table>

  
  </body>
  
</html>
